package com.hourse;

import com.hourse.util.IdWorker;
import com.hourse.util.JwtUtil;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.Bean;
import sun.applet.Main;

@SpringBootApplication
@EnableEurekaClient
@MapperScan("com.hourse.mapper")
public class HourseApplication {
    public static void main(String[] args) {
        SpringApplication.run(HourseApplication.class,args);
    }
    @Bean
    public IdWorker idWorker(){
        return new IdWorker();
    }
    @Bean
    public JwtUtil jwtUtil(){
        return new JwtUtil();
    }
}
